<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <base href="<%=basePath%>">

    <title>My JSP 'editTeacherInfo.jsp' starting page</title>

    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <!--
    <link rel="stylesheet" type="text/css" href="styles.css">
    -->
    <link rel="stylesheet" href="css/bootstrap.min.css">

    <style type="text/css">
        .div_ads {
            width: 75%;
            margin: 0 auto;
            margin-top: 50px;
            margin-left: 10%;
        }
        a{
            cursor: pointer
        }
        table {
            margin: 0 auto;
            width:100%;
            border-collapse:separate;
            border-spacing:0px 10px;
        }

        table tr td {
            text-align: center;
            width:150px;
            height:44px;
        }

        font{
            color:red;
            font-weight: bold;
        }
    </style>
</head>

<body>
<form action="ServletAddMoney" method="post">

    <div class="div_ads">

            <table>
                <tr>
                    <td>账&nbsp;&nbsp;&nbsp;号：</td>
                    <td><input type="text" name="teaNum" class="form-control" value="${unum}" readonly="readonly" /></td>
                </tr>
                <tr>
                    <td>请输入充值的金额</td>
                    <td><input type="text" onkeyup="value=value.replace(/^D*(\d*(?:\.\d{0,1})?).*$/g,'$1')" name="money" class="form-control" value="" /></td>
                </tr>
                <tr>
                    <td><input type="submit" value="充值" class="btn btn-primary" /></td>
                    <td><input type="reset" value="清空" class="btn btn-danger" /></td>
                </tr>
            </table>
    </div>
</form>
</body>
</html>